<template>
  <h-modal okText="确定" cancelText="取消" @cancel="close" :width="900"
           title="单据审批历史" :visible="visible" @ok="close"
           :height="600">
    <FormFlowHistory :request="request" :formId="formId"/>
  </h-modal>
</template>
<script>
import HModal from '@/components/HModal/HModal.vue';
import {createProps} from '@/utils';
import FormFlowHistory from '@/components/flow/FormFlowHistory/FormFlowHistory.vue';

export default {
  name: 'FormFlowHistoryModal',
  components: {FormFlowHistory, HModal},
  props: {
    formId: createProps(String),
    request: createProps(Object, () => ({
      baseURL: '/h-flow',
      headers: {
        flow: 'h-flow'
      },
    }))
  },
  data() {
    return {
      visible: true
    };
  },
  methods: {
    close() {
      this.visible = false;
    },
  }
};
</script>